from selenium import webdriver
import pytest,json
from ykao.Page.Page1 import Page
def ass():
    with open('min.json','r',encoding='utf8')as f:
        a=json.load(f)
        return a
@pytest.fixture()
def dr():
    dr=webdriver.Edge()
    dr.maximize_window()
    yield dr
    dr.quit()
@pytest.mark.parametrize('data',ass())
def test_001(dr,data):
    a=Page(dr)
    a.yx()